# This file is part of Ardesia http://ardesia.googlecode.com

# install some msys required packages
mingw-get install msys-wget msys-zip msys-unzip msys-gettext msys-libcrypt msys-autoconf msys-automake msys-m4

mkdir tmp
(
cd tmp


# install the gtk all in one bundle in the mingw folder
wget http://ftp.acc.umu.se/pub/gnome/binaries/win32/gtk+/2.16/gtk+-bundle_2.16.6-20100912_win32.zip
unzip -o gtk+-bundle_2.16.6-20100912_win32.zip -d /mingw


# install intltool from gnome in the mingw folder
wget http://ftp.gnome.org/pub/gnome/binaries/win32/intltool/0.40/intltool_0.40.4-1_win32.zip
unzip -o intltool_0.40.4-1_win32.zip -d /mingw
# the intltool script from gnome has the /opt/perl/bin/perl shell bang and we want use the msys perl
mkdir -p /opt/perl/bin
ln -s /bin/perl.exe /opt/perl/bin/perl.exe


# install the libgsf from gnome required to use the gnome structured file api
wget http://ftp.yandex.ru/mirrors/ftp.gnome.org/binaries/win32/libgsf/1.14/libgsf_1.14.17-1_win32.zip
unzip -o libgsf_1.14.17-1_win32.zip -d /mingw
wget http://ftp.yandex.ru/mirrors/ftp.gnome.org/binaries/win32/libgsf/1.14/libgsf-dev_1.14.17-1_win32.zip
unzip -o libgsf-dev_1.14.17-1_win32.zip -d /mingw


# install the libxml2 from gnome required to parse the xml
wget http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libxml2_2.7.7-1_win32.zip
unzip -o libxml2_2.7.7-1_win32.zip -d /mingw
wget http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libxml2-dev_2.7.7-1_win32.zip
unzip -o libxml2-dev_2.7.7-1_win32.zip -d /mingw


# install the gnu scientific library from source code;
# I have not found a good binary
wget http://ftpmirror.gnu.org/gsl/gsl-1.15.tar.gz
tar zxvf gsl-1.15.tar.gz
(
cd gsl-1.15
./configure --host=mingw32 --prefix=/mingw
make
make install
)


# install the subversion client needed to checkout the ardesia source code
wget http://sourceforge.net/projects/win32svn/files/1.6.15/svn-win32-1.6.15.zip/download
unzip -o svn-win32-1.6.15.zip
cp svn-win32-1.6.15/bin/* /mingw/bin

)
